package com.example.demo.service.impl;

import com.example.demo.dao.RepertorygoodsDao;
import com.example.demo.pojo.Repertorygoods;
import com.example.demo.service.RepertorygoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RepertorygoodsServiceImpl implements RepertorygoodsService {

    @Autowired
    private RepertorygoodsDao dao;
    @Resource
    private RepertorygoodsDao repertorygoodsDao;
    @Override
    public int insert(Repertorygoods record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(Repertorygoods record) {
        return dao.insertSelective(record);
    }

    @Override
    public List<Repertorygoods> selectBy(int repertoryId) {
        return dao.selectBy(repertoryId);
    }

    @Override
    public int update(Repertorygoods record) {
        return repertorygoodsDao.update(record);
    }
}
